package com.hou.jvm;

import java.util.ArrayList;
import java.util.List;

public class HeadOOMTest {

    static class TestObject{
        private String name;
    }

    public static void main(String[] args) {
        ArrayList<TestObject> testObjects = new ArrayList<>();
        while(true){
            testObjects.add(new TestObject());
        }
    }
}
